package com.dongwu.manager.dao;

import com.dongwu.common.dao.BaseDao;
import com.dongwu.manager.entity.TemplateType;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TemplateDao extends BaseDao<TemplateType, String> {

    @Query(value = "select * from template_type t where t.id in(?1)", nativeQuery = true)
    List<TemplateType> findByTemplateTypeId(List<String> ids);

    TemplateType findByTemplateTypeSn(String templateTypeSn);
}
